package com.zsrt.javaweb;

public class HelloWorld {
	
	private String name;

	public void setStudentName(String name) {
		this.name = name;
	}
	
	
	public void printName(){
		System.out.println("hello: "+name);
	}


	public  HelloWorld(){
		System.out.println("调用HelloWorld的无参的构造方法...");
		System.out.println(this);
	}
	
	public HelloWorld(String name) {
		super();
		this.name = name;
	}
	
	
	

}
